package com.example.ivos.application.pojo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Application {
    @ApiModelProperty(value = "申请单id",required = true)
    private Long id;
    @ApiModelProperty(value = "申请人id",required = true)
    private Long userId;
    @ApiModelProperty(value = "申请人姓名",required = true)
    private String username;
    @ApiModelProperty(value = "用车开始时间",required = true)
    private Date startTime;
    @ApiModelProperty(value = "用车结束时间",required = true)
    private Date endTime;
    @ApiModelProperty(value = "驾照图片",required = true)
    private String imgUrl;
    @ApiModelProperty(value = "出发地",required = true)
    private String departureAddr;
    @ApiModelProperty(value = "目的地",required = true)
    private String destinationAddr;
    @ApiModelProperty(value = "用车原因",required = true)
    private String reason;
    @ApiModelProperty(value = "备注",required = true)
    private String remark;
    @ApiModelProperty(value = "申请单状态",required = true)
    private String status;
    @ApiModelProperty(value = "分配车辆id",required = true)
    private Long vehicleId;
    @ApiModelProperty(value = "驳回原因",required = true)
    private String rejectReason;
    @ApiModelProperty(value = "创建时间",required = true)
    private Date createTime;
    @ApiModelProperty(value = "更新时间",required = true)
    private Date updateTime;

    /*瞬态属性*/
    @ApiModelProperty(value = "审批人id集合",required = true)
    private List<Long> auditUserIdList;
    @ApiModelProperty(value = "审批人姓名集合",required = true)
    private String auditUsernameList;
}
